<span id="${uuid}"></span>
<div class="box_tc_s">
    <form class="form form-horizontal" method="post" role="form"
          action="${pageContext.request.contextPath}/app/api/sysMember/update"
          name="form-user-edit" data-id="form-user-update-info">
        <input type="hidden" name="id" data-id="id" value="${user.id}"/>
        <input type="hidden" data-id="setPasswordTrue" name="setPasswordTrue" value="0"/>
        <table border="1" cellpadding="0" cellspacing="0" class="hydra-table">
            <tr class="hydra-tr-bg">
                <td class="hydra-left">用户名:</td>
                <td class="hydra-right">
                    <input type="text" data-id="user_number" name="userNumber"
                           class="easyui-validatebox hydra-input-width"
                           data-options="required:true,validType:['normalChar','length[0,20]']"
                           placeholder="名称.." value="${user.userNumber}"/></td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left">姓名:</td>
                <td class="hydra-right">
                    <%--<input type="hidden" name="userNumber" value="${user.userNumber}">--%>
                    <input type="text" data-id="user_name" name="userName"
                           class="easyui-validatebox hydra-input-width"
                           data-options="required:true,validType:['normalChar','length[0,20]']"
                           placeholder="名称.." value="${user.userName}"/></td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left">用户头像：</td>
                <td class="hydra-right" data-id="userHeadTd">
                    <input name="userHead" data-id="userHeadList" class="hydra-input-width" value="${user.userHead}"/>
                    <img data-id="userHead" src="${pageContext.request.contextPath}/print/${user.userHead}"
                         style="width: 36px;height: 36px;" >
                    <%--<input type="text" data-id="uploadCover" name="userHead" value="${user.userHead}" /></td>--%>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left">用户邮箱:</td>
                <td class="hydra-right"><input type="text" data-id="user_email"
                                               class="easyui-validatebox hydra-input-width"
                                               data-options="validType:['email','length[0,40]']" name="email"
                                               placeholder="邮箱.." value="${user.email}"/></td>
            </tr>
            <tr>
                <td class="hydra-left">用户手机:</td>
                <td class="hydra-right"><input type="text" data-id="user_mobile"
                                               class="easyui-validatebox hydra-input-width"
                                               data-options="validType:['mobile','length[0,20]']" name="mobile"
                                               placeholder="手机.." value="${user.mobile}"/></td>
            </tr>
            <%--<tr>--%>
                <%--<td class="hydra-left">职务：</td>--%>
                <%--<td class="hydra-right">--%>
                    <%--<input type="text" data-id="alias"--%>
                           <%--name="alias" class="easyui-validatebox hydra-input-width"--%>
                           <%--data-options="validType:['length[0,20]']"--%>
                           <%--placeholder="岗位.." value="${user.alias}"/></td>--%>
            <%--</tr>--%>
            <shiro:hasPermission name="member:data:enable">
                <tr class="hydra-tr-bg">
                    <td class="hydra-left">用户状态:</td>
                    <td class="hydra-right">
                        <input type="checkbox" name="available" value="1" data-id="available" ${user.available eq 1 ? "checked": ""}/>
                    </td>
                </tr>
            </shiro:hasPermission>
            <shiro:hasPermission name="member:password:update">
                <tr>
                    <td class="hydra-left">用户密码:</td>
                    <td class="hydra-right"><input type="password"
                                                   id="user_password" autocomplete="off" name="userPassword"
                                                   class="easyui-validatebox hydra-input-width"
                                                   data-options="required:true,validType:['normalChar','length[0,40]']"
                                                   placeholder="密码.." value="${user.userPassword}"/></td>
                </tr>
                <tr class="hydra-tr-bg" data-id="user-add-sysmember_update_password1">
                    <td class="hydra-left">确认密码:</td>
                    <td class="hydra-right"><input type="password"
                                                   data-id="user_password1" autocomplete="off" name="userPassword1"
                                                   class="easyui-validatebox hydra-input-width"
                                                   data-options="required:true,validType:'equals[\'#user_password\']'"
                                                   placeholder="密码.." value="${user.userPassword }"/></td>
                </tr>
            </shiro:hasPermission>
            <tr>
                <td class="hydra-left">IP地址：</td>
                <td class="hydra-right"><input type="text" data-id="ipAddress" value="${user.ipAddress}"
                                               name="ipAddress" class="hydra-input-width"/></td>
            </tr>
            <tr>
                <td class="hydra-left">序号：</td>
                <td class="hydra-right">
                    <input type="text" autocomplete="off" name="orderNo"
                           class="easyui-numberbox hydra-input-width"
                           data-options="min:0" value="${user.orderNo}"/>
                </td>
            </tr>
        </table>
        <shiro:lacksPermission name="member:data:enable">
            <input type="hidden" name="available" value="${user.available}">
        </shiro:lacksPermission>
        <shiro:lacksPermission name="member:password:update">
            <input type="hidden" name="userPassword" value="${user.userPassword}">
        </shiro:lacksPermission>
    </form>
</div>
<script type="text/javascript">
    seajs.use(["apps/user/main"], function(page){
        var uuid = "${uuid}";
        page.update("${pageContext.request.contextPath}", uuid);
    });
</script>